package com.zerdoor.service.impl;

import com.zerdoor.dao.AribitrationDao;
import com.zerdoor.service.AribitrationService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * Created by xiaoji on 2015/1/7.
 */
@Service
public class AribitrationServiceImpl implements AribitrationService {
    @Autowired
    private AribitrationDao aribitrationDao;

    @Override
    public List<Map<String, Object>> getArtistAribitration(int artistId) {
        return aribitrationDao.getArtistAribitration(artistId);
    }

    @Override
    public List<Map<String, Object>> getPrincipalAribitration(int baileId) {
        return aribitrationDao.getPrincipalAribitration(baileId);
    }

    @Override
    public List<Map<String, Object>> getItemDiscuss(Map<String, Object> map) {
        return aribitrationDao.getItemDiscuss(map);
    }

    @Override
    public void addItemDiscuss(Map<String, Object> map) throws Exception {
        aribitrationDao.addItemDiscuss(map);
    }

    @Override
    public Map<String, Object> getAribitrationById(Map<String, Object> map) {
        return aribitrationDao.getAribitrationById(map);
    }

    @Override
    public void addArbitration(Map<String, Object> map) throws Exception {
        aribitrationDao.addArbitration(map);
    }

    @Override
    public Map<String, Object> getContractById(Map<String, Object> map) {
        return aribitrationDao.getContractById(map);
    }
}
